Platform Explorer / Nuxeo Platform 11.4

Contribution org.nuxeo.ecm.platform.routing.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.routing.actions inside nuxeo-routing-web-11.4.jar /OSGI-INF/document-routing-actions-contrib.xml

Extension Point

Extension point actions of component ActionService.

Registration Order

41
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <action id="TAB_CONTENT">
          <filter-id>isNotRoute</filter-id>
        </action>
  • <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_CONTENT" label="action.view.content" link="/incl/tabs/document_route_content.xhtml" order="10" type="rest_document_link">
          <category>TAB_MANAGE_sub_tab</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_ELEMENTS" label="action.view.document.routing.elements" link="/incl/tabs/document_route_content_elements.xhtml" order="10" type="rest_document_link">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>isRoute</filter-id>
        </action>
  • <action id="CANCEL_RELATED_ROUTE" label="label.document.routing.cancel.route" link="#{routingActions.cancelRoute()}" order="10">
          <category>ATTACHED_ROUTE_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action id="SAVE_ATTACHED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="10">
          <category>ATTACHED_ROUTE_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
        </action>
  • <action id="VALIDATE_ROUTE" label="action.validate.document.routing.model" link="#{routingActions.validateRouteModel()}" order="10">
          <category>ROUTE_LIST</category>
          <filter-id>isDraftRouteModel</filter-id>
          <filter id="canValidateRoute">
            <rule grant="true">
              <condition>#{routeSecurityChecker.canValidateRoute(currentDocument)}
              </condition>
            </rule>
          </filter>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_BEFORE" label="command.add.routeelement.before" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'before';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_AFTER" label="command.add.routeelement.after" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'after';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_ACTIONS_LIST</category>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/add.png" id="ADD_STEP_BETWEEN" label="command.add.routeelement.in" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'in';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
          <category>ADD_STEP_IN_FORK_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action icon="/icons/delete.png" id="REMOVE_STEP" label="command.delete" link="#{routingActions.removeStep}">
          <category>REMOVE_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/modify.png" id="UPDATE_STEP" label="command.edit" link="#{routingActions.editStep}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
        </action>
  • <action icon="/icons/routing_move_up.png" id="MOVE_STEP_UP" label="command.selection.moveUp" link="#{routingActions.moveRouteElement('up')}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action icon="/icons/routing_move_down.png" id="MOVE_STEP_DOWN" label="command.selection.moveDown" link="#{routingActions.moveRouteElement('down')}">
          <category>EDIT_STEP_ACTIONS_LIST</category>
          <filter-id>isNotRunning</filter-id>
          <filter-id>isEditableRoute</filter-id>
          <filter-id>isNotImutableConditionalStructure</filter-id>
        </action>
  • <action id="newDocument">
          <filter-id>create</filter-id>
          <filter-id>isNotDraftRouteModel</filter-id>
        </action>
  • <action enabled="true" id="TAB_ROUTE_WORKFLOW" label="action.view.review" link="/incl/tabs/current_route.xhtml" order="60" type="rest_document_link">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>hasRelatedRouteStarted</filter-id>
        </action>
  • <action id="reassignTask" label="label.workflow.task.reassign" order="100" type="fancybox">
          <category>TASK_ADDITIONAL_ACTIONS</category>
          <properties>
            <property name="include">/incl/tasks/task_reassignment_box.xhtml</property>
            <property name="autoDimensions">true</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action id="delegateTask" label="label.workflow.task.delegation" order="110" type="fancybox">
          <category>TASK_ADDITIONAL_ACTIONS</category>
          <properties>
            <property name="include">/incl/tasks/task_delegation_box.xhtml</property>
            <property name="autoDimensions">true</property>
            <property name="modal">true</property>
            <property name="scrolling">auto</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/refresh.png" id="current_route_refresh_tasks" label="label.refresh" link="#{taskActions.resetCache()}" order="100">
          <category>CURRENT_ROUTE_PANEL_TOP</category>
          <properties>
            <property name="ajaxSupport">true</property>
            <property name="addForm">true</property>
            <property name="useAjaxForm">true</property>
            <property name="styleClass">button</property>
            <property name="ajaxReRender">
              currentRoutePanelLeft
            </property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
    <action id="TAB_CONTENT">
      <filter-id>isNotRoute</filter-id>
    </action>

    <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_CONTENT" label="action.view.content" link="/incl/tabs/document_route_content.xhtml" order="10" type="rest_document_link">
      <category>TAB_MANAGE_sub_tab</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action icon="/icons/file.gif" id="TAB_DOCUMENT_ROUTE_ELEMENTS" label="action.view.document.routing.elements" link="/incl/tabs/document_route_content_elements.xhtml" order="10" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>isRoute</filter-id>
    </action>

    <action id="CANCEL_RELATED_ROUTE" label="label.document.routing.cancel.route" link="#{routingActions.cancelRoute()}" order="10">
      <category>ATTACHED_ROUTE_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <action id="SAVE_ATTACHED_ROUTE_AS_NEW_INSTANCE" label="label.document.routing.saveAsNew" link="#{routingActions.saveRouteAsNewInstance()}" order="10">
      <category>ATTACHED_ROUTE_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
    </action>

    <!-- TODO this action should not be seen globally
      <action id="SAVE_SELECTED_ROUTE_AS_NEW_INSTANCE"
      link="#{routingActions.saveSelectedRouteAsNewInstance()}" order="50"
      label="label.document.routing.saveAsNew">
      <category>CURRENT_SELECTION_LIST</category>
      <filter id="canDuplicateRouteInstance">
      <rule grant="true">
      <condition>#{routingActions.getCanDuplicateRouteInstance()}
      </condition>
      </rule>
      </filter>
      </action>
    -->

    <!-- TODO this action should not be seen globally
      <action id="SAVE_ROUTE_AS_NEW_INSTANCE" link="#{routingActions.saveRouteAsNewInstance()}"
      order="20" label="label.document.routing.saveAsNew">
      <category>SUBVIEW_UPPER_LIST</category>
      <category>ROUTE_LIST</category>
      <filter-id>isRoute</filter-id>
      </action>
    -->

    <action id="VALIDATE_ROUTE" label="action.validate.document.routing.model" link="#{routingActions.validateRouteModel()}" order="10">
      <category>ROUTE_LIST</category>
      <filter-id>isDraftRouteModel</filter-id>
      <filter id="canValidateRoute">
        <rule grant="true">
          <condition>#{routeSecurityChecker.canValidateRoute(currentDocument)}
          </condition>
        </rule>
      </filter>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/add.png" id="ADD_STEP_BEFORE" label="command.add.routeelement.before" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'before';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/add.png" id="ADD_STEP_AFTER" label="command.add.routeelement.after" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'after';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_ACTIONS_LIST</category>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/add.png" id="ADD_STEP_BETWEEN" label="command.add.routeelement.in" link="javascript:document.getElementById('selectRouteElementsTypeForCreationForm:hiddenDocOrder').value = 'in';Richfaces.showModalPanel('selectRouteElementsTypePanel');">
      <category>ADD_STEP_IN_FORK_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/delete.png" id="REMOVE_STEP" label="command.delete" link="#{routingActions.removeStep}">
      <category>REMOVE_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/modify.png" id="UPDATE_STEP" label="command.edit" link="#{routingActions.editStep}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/routing_move_up.png" id="MOVE_STEP_UP" label="command.selection.moveUp" link="#{routingActions.moveRouteElement('up')}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <!--@deprecated since 5.9.2, use only routes of type 'graph' -->
    <action icon="/icons/routing_move_down.png" id="MOVE_STEP_DOWN" label="command.selection.moveDown" link="#{routingActions.moveRouteElement('down')}">
      <category>EDIT_STEP_ACTIONS_LIST</category>
      <filter-id>isNotRunning</filter-id>
      <filter-id>isEditableRoute</filter-id>
      <filter-id>isNotImutableConditionalStructure</filter-id>
    </action>

    <action id="newDocument">
      <filter-id>create</filter-id>
      <filter-id>isNotDraftRouteModel</filter-id>
    </action>

    <!-- 'Workflow' tab when a document route is running -->
    <!--
      <action id="TAB_ROUTE_WORKFLOW" enabled="true"
      link="/incl/tabs/route_workflow.xhtml" label="action.view.review"
      icon="/icons/file.gif" order="60">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>isRoutable</filter-id>
      <filter id="TAB_ROUTE_WORKFLOW_has_subtabs">
      <rule grant="false">
      <condition>
      #{webActions.getActionsList('TAB_ROUTE_WORKFLOW_sub_tab').isEmpty()}
      </condition>
      </rule>
      </filter>
      </action> -->

    <!-- 'Workflow' sub tab: current route -->
    <action enabled="true" id="TAB_ROUTE_WORKFLOW" label="action.view.review" link="/incl/tabs/current_route.xhtml" order="60" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>hasRelatedRouteStarted</filter-id>
    </action>

    <action id="reassignTask" label="label.workflow.task.reassign" order="100" type="fancybox">
      <category>TASK_ADDITIONAL_ACTIONS</category>
      <properties>
        <property name="include">/incl/tasks/task_reassignment_box.xhtml</property>
        <property name="autoDimensions">true</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action id="delegateTask" label="label.workflow.task.delegation" order="110" type="fancybox">
      <category>TASK_ADDITIONAL_ACTIONS</category>
      <properties>
        <property name="include">/incl/tasks/task_delegation_box.xhtml</property>
        <property name="autoDimensions">true</property>
        <property name="modal">true</property>
        <property name="scrolling">auto</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/refresh.png" id="current_route_refresh_tasks" label="label.refresh" link="#{taskActions.resetCache()}" order="100">
      <category>CURRENT_ROUTE_PANEL_TOP</category>
      <properties>
        <property name="ajaxSupport">true</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">true</property>
        <property name="styleClass">button</property>
        <property name="ajaxReRender">
          currentRoutePanelLeft
        </property>
      </properties>
    </action>

  </extension>